<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .form {
            width: 500px;
        }
        .form-item {
            width: 100%;
            display: flex;
            margin-bottom: 16px;
        }

        .form-item .label {
            width: 150px;
            text-align: right;
            margin-right: 8px;
        }

        .form-item .label span {
            color: red;
        }

        .form-item :last-child {
            flex: 1;
        }

        .btn {
            border-radius: 4px;
            padding: 4px 16px;
            /* 撑开 */
            display: inline-block;
            border: 1px solid #aaa;
        }

        .btn.primary {
            color: #fff;
            background-color: #0050b3;
            border: 1px solid transparent;
        }

        textarea {
            resize: none;
        }
    </style>
</head>
<body>
    <div class="form">
        <!-- 表单项 -->
        <div class="form-item">
            <div class="label">Top coders:</div>
            <input type="text">
        </div>
        <div class="form-item">
            <div class="label">
                <span>*</span>
                Bio:
            </div>
            <textarea rows="10" placeholder="aaaaaaaaaa"></textarea>
        </div>
        <div class="form-item">
            <div class="label"></div>
            <div class="btns">
                <div class="btn primary">Submit</div>
                <div class="btn">Reset</div>
            </div>
        </div>
    </div>
</body>
</html>